# ==============================================================================
# Copyright (C) 2022 Intel Corporation
#
# SPDX-License-Identifier: MIT
# ==============================================================================

cmake_minimum_required(VERSION 3.1)

set(TARGET_NAME "meta_aggregate")

file(GLOB MAIN_SRC
        ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp
        )

file(GLOB MAIN_HEADERS
        ${CMAKE_CURRENT_SOURCE_DIR}/*.hpp
        )

add_library(${TARGET_NAME} STATIC ${MAIN_SRC} ${MAIN_HEADERS})
set_compile_flags(${TARGET_NAME})

target_include_directories(${TARGET_NAME}
        PUBLIC
        ${CMAKE_CURRENT_SOURCE_DIR}
        PRIVATE
        ${DLSTREAMER_BASE_INCLUDE_DIR}/gst/preview_elements/types # TODO remove after removing dependency on gva_roi_ref_meta.hpp
        ${DLSTREAMER_BASE_INCLUDE_DIR}/gst/preview_elements/common # TODO remove after removing dependency on gva_buffer_flags.hpp
        )

target_link_libraries(${TARGET_NAME}
        PUBLIC
        dlstreamer_gst
        gstvideoanalyticsmeta
        )
